<?php
$user=$_POST['user'];
$user['pic']="./imges/".$_FILES['pic']['name'];
echo "<br>用户数据:".$str=var_export($user,true);
$str.=",";
file_put_contents("./data.txt",$str,FILE_APPEND);
?>